<!DOCTYPE html>
<html lang="<?php echo ($lang_url==''? 'es': substr($lang_url, 0, 2)); ?>">
<head>
  <meta charset="utf-8" />

  <!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame 
       Remove this if you use the .htaccess -->
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

  <title>sin plugin</title>

  <meta name="robots" content="noindex" />
  <meta name="viewport" content="width=device-width; initial-scale=1.0" />
  <style media="screen" type="text/css">
  	body {
		font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
		margin: 0;
		padding: 0;
	}
  	.absoluto{
  		text-align: center;
  	}
  	.absoluto h2{
		margin: 0 0 0px 0;
		color: #F0F0F0;
		text-align: center;
		border-bottom: 1px #DFDFDF solid;
	}
	
	table{
		width:100%;
		font-size: .8em;
		border-left: 1px #DFDFDF solid;
		border-right: 1px #DFDFDF solid;
	}
	table .hed{
		background-color: #DFDFDF;
		font-weight: bold;
		color:#444;
	}
	table .hed td{
		padding: 3px 0;
	}
	table .cont td{
		border-bottom: 1px #DFDFDF solid;
		color:#fff;
	}
  </style>
</head>

<body>
	<div class="absoluto">
		<h2><?php echo lang('v_select_sourse'); ?></h2>
		<table cellpadding="0" cellspacing="0">
			<tr class="hed">
				<td>Enlace</td>
				<td>Servidor</td>
				<td>Audio</td>
				<td>Info</td>
				<td>Calidad</td>
				<td>Uploader</td>
				<td>Calificacion</td>
			</tr>
	<?php //Nombres de los servidores
	if(isset($film['sources'])){
		if(is_array($film['sources'])){
			$download = $url_s = '';
			foreach($film['sources'] as $keys => $source){
				if($source['online'] == 1){
					$url_s = $source['origen'].(strpos($source['origen'], '?')===FALSE? '?': '&').'maniaco='.$maniaco.'&video='.$video.(isset($t)? '&t='.$t: '');
					echo '
				<tr class="cont">
					<td><a href="'.$url_s.'" rel="nofollow" target="_blank">Reproducir</a></td>
					<td><img src="'.$source[($t=='e'? 'url_img': 'image')].'" width="150" height="50" alt="'.lang('v_download').' '.$source['name'].'" /></td>
					<td>'.$source['language'].'</td>
					<td>Info
						<div id="tipinfo'.$keys.'" class="tipinfo"></div>
					</td>
					<td>'.$source['quality'].'</td>
					<td>'.$source['user'].'</td>
					<td>Calificacion</td>
				</tr>';
					
					/*echo '<a href="'.$url_s.'" class="servers" title="'.lang('v_download').' '.$source['name'].'" rel="nofollow" target="_blank">
						<img src="'.$source[($t=='e'? 'url_img': 'image')].'" width="150" height="150" alt="'.lang('v_download').' '.$source['name'].'" /></a>';*/
				}
			}
		}
	}else{
		echo '<strong style="color:#E74B39; font-size: 1.1em;">'.lang('v_not_sourse').'</strong>';
	}
	?>
		</table>
	<div>
</body>
</html>
